package com.ucar.common.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/*
 * create table CAR
(
  ID            VARCHAR2(64 CHAR) not null,
  VECHILE_BRAND VARCHAR2(50 CHAR),
  VECHILE_COLOR VARCHAR2(50 CHAR),
  VECHILE_NO    VARCHAR2(100 CHAR),
  VECHILE_TYPE  VARCHAR2(100 CHAR),
  PERSON_ID     VARCHAR2(64 CHAR)
)
 */
/**
 * 
* @author dinghao
* @ClassName: Car 
* @Description: TODO
* @date 2018年3月21日 下午3:07:43 
*
 */

@Entity
@Table(name="CAR")
@ApiModel(value = "重点车")
public class Car implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@ApiModelProperty("标识符")
	private Integer id;

	@ApiModelProperty(value="车辆品牌")
	@Column(name="VECHILE_BRAND")
	@Size(max=50)
	private String vechileBrand;

	@ApiModelProperty(value="车辆颜色")
	@Column(name="VECHILE_COLOR")
	@Size(max=50,message="车辆颜色")
	private String vechileColor;
	
	@ApiModelProperty(value="车牌号")
	@Min(value=5,message="车牌号的长度最小不能为5")
	@Column(name="VECHILE_NO")
	@Size(max=100)
	private String vechileNo;
	
	@ApiModelProperty(value="车辆类型")
	@Column(name="VECHILE_TYPE")
	@Size(max=100)
	private String vechileType;

	@ApiModelProperty(value="重点人ID")
	@Column(name="PERSON_ID")
	@Size(max=64)
	private String personId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getVechileBrand() {
		return vechileBrand;
	}

	public void setVechileBrand(String vechileBrand) {
		this.vechileBrand = vechileBrand;
	}

	public String getVechileColor() {
		return vechileColor;
	}

	public void setVechileColor(String vechileColor) {
		this.vechileColor = vechileColor;
	}

	public String getVechileNo() {
		return vechileNo;
	}

	public void setVechileNo(String vechileNo) {
		this.vechileNo = vechileNo;
	}

	public String getVechileType() {
		return vechileType;
	}

	public void setVechileType(String vechileType) {
		this.vechileType = vechileType;
	}

	public String getPersonId() {
		return personId;
	}

	public void setPersonId(String personId) {
		this.personId = personId;
	}

	@Override
	public String toString() {
		return "Car [id=" + id + ", vechileBrand=" + vechileBrand + ", vechileColor=" + vechileColor + ", vechileNo="
				+ vechileNo + ", vechileType=" + vechileType + ", personId=" + personId + "]";
	}
	
	
}
